import Vue from 'vue'

import { Button, Form, FormItem, Input, Message, Dropdown, DropdownItem, DropdownMenu, Menu, Submenu, MenuItemGroup, MenuItem, Table, TableColumn, Select, Option, Dialog, MessageBox, Pagination, Switch ,Transfer, DatePicker} from 'element-ui'

// 调用Button里面install方法，Vue.component()
// 注册一个全局组件
Vue.use(Button).use(Form).use(FormItem).use(Input).use(Dropdown).use(DropdownItem).use(DropdownMenu).use(Menu).use(Submenu).use(MenuItemGroup).use(MenuItem).use(Table).use(TableColumn).use(Select).use(Option).use(Dialog).use(Pagination).use(Switch).use(Transfer).use(DatePicker)
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm
// Vue.use(Form)
// Vue.component(Button.name, Button) // Vue.component('ElButton', Button)
// console.log(Button.name) //ElButton

